<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><s:text name="title" /></title>
<link href="<%=request.getContextPath()%>/stage/css/stlye.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/stage/js/jquery-1.4.2.min.js"></script>
<script type="text/JavaScript">
<!--
$(document).ready(function() {
	$(".lzss a").css('cursor','pointer');     //统一设置查询链接为手形
    $(".lzss a").click(function(){         //点击查询条件，改变颜色
    	if($(this).css('color')=='yellow'){
    		$(this).css('color','#ccc');
    	}else{
    		$(this).css('color','yellow');
    	}      	
    	$("#reset").css('color','#ccc'); 
    })
})
function search(){
	var server ="<%=request.getContextPath()%>/todiamond.action?1=1";
 	$.each($("#colo a"), function(name, value){
    	if($(this).css('color')=='yellow'){
    		server+="&sDiamondBo.colour="+$(this).text();
    	}
	}); 
	$.each($("#pure a"), function(name, value){
    	if($(this).css('color')=='yellow'){
    		server+="&sDiamondBo.purity="+$(this).text();
    	}
	}); 

	$.each($("#cert a"), function(name, value){
    	if($(this).css('color')=='yellow'){
    		server+="&sDiamondBo.cerificate="+$(this).text();
    	}
	});
	server  = encodeURI(server);
	server = encodeURI(server);//注意要两次 
	document.searchForm.action=server;
	document.searchForm.submit(); 
}
function toreset(){
	$(".lzss a").css('color','#ccc');
	$("#wmin").val('');
	$("#wmax").val('');
}
//-->
</script>
</head>

<body
	onload="MM_preloadImages('<%=request.getContextPath()%>/stage/images/menu0_01.jpg','<%=request.getContextPath()%>/stage/images/menu0_02.jpg','<%=request.getContextPath()%>/stage/images/menu0_03.jpg','<%=request.getContextPath()%>/stage/images/menu0_04.jpg','<%=request.getContextPath()%>/stage/images/menu0_05.jpg','<%=request.getContextPath()%>/stage/images/menu0_06.jpg','<%=request.getContextPath()%>/stage/images/menu0_07.jpg')">
<div class="mainbody"><%@ include file="head.jsp"%>
<div class="content">
<div class="ljzs">
<h1><img
	src="<%=request.getContextPath()%>/stage/images/index_29.jpg" /></h1>
<dl>
	<dt><img
		src="<%=request.getContextPath()%>/stage/images/index_40.jpg" /></dt>
	<dd><a href="<%=request.getContextPath()%>/message/<s:property value="knowList.get(0).messageId" />">
	<s:if test="knowList.get(0).content.length()>45"><s:property value="knowList.get(0).content.substring(0,45)"/>...
	</s:if><s:else><s:property value="knowList.get(0).content"/></s:else></a></dd>
	<h2><a href="<%=request.getContextPath()%>/toknowlist.action">了解更多&gt;&gt;</a></h2>
</dl>
</div>
<div class="news">
<h1><img
	src="<%=request.getContextPath()%>/stage/images/index_32.jpg"
	width="111" height="17" /></h1>
<ul>
	<s:iterator value="dataList">
		<li><a href="<%=request.getContextPath()%>/message/<s:property value="messageId"/>">· 
			<s:property value="name" /></a></li>
	</s:iterator>
</ul>
<h2><input type="image" src="<%=request.getContextPath()%>/stage/images/index_43.jpg" 
	onclick="location.href='<%=request.getContextPath()%>/tomesslist.action'"/></h2>
</div>
<div class="lzss">
<form name="searchForm" method="post">
<h1><img
	src="<%=request.getContextPath()%>/stage/images/index_35.jpg"
	width="199" height="18" /></h1>
<ul id="sul">
	<li>重量：<input name="sDiamondBo.minWeight" id="wmin" type="text" class="sous1" />
	- <input name="sDiamondBo.maxWeight" id="wmax" type="text" class="sous1" /> 克拉</li>
	<li>颜色：<span class="zise1" id="colo"><a>D</a>|<a>E</a>|<a>F</a>|<a>G</a>|<a>H</a>|<a>I</a>|<a>J</a>|<a>K</a></span></li>
	<li>净度：<span class="zise1" id="pure"><a>FL</a>|<a>IF</a>|<a>VVS1</a>|<a>VVS2</a>|<a>VS1</a>|<a>VS2</a></span></li>
	<span id="cert">
	<li class="zise1">证书：<a>GIA</a>|<a>HRD</a>|<a>IGI</a>|<a>国检</a>&nbsp;&nbsp;<a
		onclick="toreset()" id="reset">重置条件</a></li>
	</span>
</ul>
<h2><a href="<%=request.getContextPath()%>/todiamond.action">高级搜索&gt;&gt;</a></h2>
<h2>
<input type="image" onclick="search()"
	src="<%=request.getContextPath()%>/stage/images/common/search1.gif" />
</h2>
</form>
</div>
</div>
<%@ include file="foot.jsp"%></div>
</body>
</html>
